﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.ComponentModel;

namespace SanctusSoftware.Music.ChordSheetEditor.Wpf
{
    /// <summary>
    /// Interaction logic for TransposeOptionsWindow.xaml
    /// </summary>
    public partial class TransposeOptionsWindow : Window, INotifyPropertyChanged
    {

        #region Events

        public event PropertyChangedEventHandler PropertyChanged;

        private void OnPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        #endregion

        #region Properties

        private int _MinimumChordLineMatchPercentage = 50;
        public int MinimumChordLineMatchPercentage
        {
            get { return _MinimumChordLineMatchPercentage; }
            set
            {
                _MinimumChordLineMatchPercentage = value;
                OnPropertyChanged("MinimumChordLineMatchPercentage");
            }
        }

        #endregion
        
        #region Constructor

        public TransposeOptionsWindow()
        {
            InitializeComponent();
            this.DataContext = this;
        }

        #endregion

        private void _OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }

        private void _CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            this.Close();
        }



    }
}
